package cn.tedu.oop;

public class TestDemo {
    public static void main(String[] args) {
        user2 u=new user2();
        u.setName("张三");
        u.setPrice(1999.99);
        System.out.println(u.getName());
        System.out.println(u.getPrice());
    }
}
class user2{
    private String name;
    private double price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}